//
//  ShiwenCell.swift
//  BWNetworkKit_Example
//
//  Created by zhuxuhong on 2022/3/3.
//  Copyright © 2022 CocoaPods. All rights reserved.
//

import BWUIKit

class ShiwenCell: TableViewCell {
    @IBOutlet weak var authorLb: UILabel!
    @IBOutlet weak var contentLb: UILabel!
    @IBOutlet weak var sourceLb: UILabel!
    
    override func bwListItemViewConfigure(_ data: Any?, indexPath: IndexPath) {
        guard let data = data as? Shiwen else {
            return
        }
        authorLb.text =  "\(data.chaodai ?? "未知")" + " · " + "\(data.author ?? "佚名")"
        contentLb.text = "\(data.cont)"
        sourceLb.text = "《\(data.source ?? "无")》"
    }
}
